package io.renren.common.utils.excel;

import lombok.NonNull;

import java.util.List;

/**
 * 导入数据校验器
 *
 * @author 56392
 */
public abstract class ExcelValidator <T extends BaseImportVo> {

    public boolean validate(@NonNull T excelData, @NonNull StringBuilder errorInfo, int position){
        return true;
    }

    public boolean validateAll(@NonNull List<T> excelData, @NonNull StringBuilder errorInfo, int startPosition){
        return true;
    }

}
